package com.txc.mapper;

import com.txc.pojo.User;
import org.springframework.stereotype.Repository;

import javax.websocket.server.PathParam;
import java.util.List;

@Repository
public interface UserMapper {
    //查询全部用户
    public List<User> queryAll();

    //增加一个用户
    public int addUser(User user);

    //根据id删除一个用户
    public int deleteUser(@PathParam("id")int id);

    //根据id查询一个用户
    public User queryOne(@PathParam("id")int id);

    //根据id修改一个用户
    public int updateUser(User user);

    //用户总数量
    public int UserCount();
}
